<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>TuringMachineDiagram: E:/Comp 2012.1/Teoria da Computação/Implementações/turing-machine-simulator-ufc-2012-1/src/unit_tests/maquina_unit_tests.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">TuringMachineDiagram
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Permite a criação de diagramas de Máquinas de Turing.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">E:/Comp 2012.1/Teoria da Computação/Implementações/turing-machine-simulator-ufc-2012-1/src/unit_tests/maquina_unit_tests.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="maquina__unit__tests_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * maquina_unit_tests.cpp</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> *  Created on: 17/03/2012</span>
<a name="l00005"></a>00005 <span class="comment"> *      Author: Vitor</span>
<a name="l00006"></a>00006 <span class="comment"> */</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;../maquina/maquina.h&quot;</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00011"></a>00011 
<a name="l00012"></a><a class="code" href="maquina__unit__tests_8h.html#a1bd7bf6b4939c89d3f8017b9114eddeb">00012</a> <span class="keywordtype">void</span> <a class="code" href="maquina__unit__tests_8h.html#a1bd7bf6b4939c89d3f8017b9114eddeb">maquina_unit_tests</a>()
<a name="l00013"></a>00013 {
<a name="l00014"></a>00014         <a class="code" href="class_maquina.html">Maquina</a> *m = <span class="keyword">new</span> <a class="code" href="class_maquina.html">Maquina</a>(<span class="stringliteral">&quot;abcd&quot;</span>, 10);
<a name="l00015"></a>00015         m-&gt;<a class="code" href="class_maquina.html#ae811cff435412f7e2b02aed8a7d4bec0">escrever</a>(<span class="charliteral">&#39;d&#39;</span>);
<a name="l00016"></a>00016         std::cout &lt;&lt; m-&gt;<a class="code" href="class_maquina.html#a98d3278377bd3cdd944fe6a88dc73871">simbolo_atual</a>() &lt;&lt; std::endl;
<a name="l00017"></a>00017         m-&gt;<a class="code" href="class_maquina.html#a5a64f3300f62ae804afbec92f406463b">mover_direita</a>();
<a name="l00018"></a>00018         m-&gt;<a class="code" href="class_maquina.html#a5a64f3300f62ae804afbec92f406463b">mover_direita</a>();
<a name="l00019"></a>00019         m-&gt;<a class="code" href="class_maquina.html#a5a64f3300f62ae804afbec92f406463b">mover_direita</a>();
<a name="l00020"></a>00020         m-&gt;<a class="code" href="class_maquina.html#a5a64f3300f62ae804afbec92f406463b">mover_direita</a>();
<a name="l00021"></a>00021         std::cout &lt;&lt; m-&gt;<a class="code" href="class_maquina.html#a98d3278377bd3cdd944fe6a88dc73871">simbolo_atual</a>() &lt;&lt; std::endl;
<a name="l00022"></a>00022         m-&gt;<a class="code" href="class_maquina.html#a0e5ff114f1bda3b1ced67f95aa5e4197">imprimir_fita</a>();
<a name="l00023"></a>00023         m-&gt;<a class="code" href="class_maquina.html#ad1cc02a96f7a0c3d7557e28afc18a12b">mover_esquerda</a>();
<a name="l00024"></a>00024         m-&gt;<a class="code" href="class_maquina.html#ad1cc02a96f7a0c3d7557e28afc18a12b">mover_esquerda</a>();
<a name="l00025"></a>00025         m-&gt;<a class="code" href="class_maquina.html#ad1cc02a96f7a0c3d7557e28afc18a12b">mover_esquerda</a>();
<a name="l00026"></a>00026         m-&gt;<a class="code" href="class_maquina.html#ad1cc02a96f7a0c3d7557e28afc18a12b">mover_esquerda</a>();
<a name="l00027"></a>00027         m-&gt;<a class="code" href="class_maquina.html#a0e5ff114f1bda3b1ced67f95aa5e4197">imprimir_fita</a>();
<a name="l00028"></a>00028         m-&gt;<a class="code" href="class_maquina.html#ad1cc02a96f7a0c3d7557e28afc18a12b">mover_esquerda</a>();
<a name="l00029"></a>00029         m-&gt;<a class="code" href="class_maquina.html#ad1cc02a96f7a0c3d7557e28afc18a12b">mover_esquerda</a>();
<a name="l00030"></a>00030         m-&gt;<a class="code" href="class_maquina.html#a0e5ff114f1bda3b1ced67f95aa5e4197">imprimir_fita</a>();
<a name="l00031"></a>00031 
<a name="l00032"></a>00032         <span class="keyword">delete</span> m;
<a name="l00033"></a>00033 }
<a name="l00034"></a>00034 
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Mon Mar 26 2012 21:04:44 for TuringMachineDiagram by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
